package observerNotification;

import java.io.File;
import java.net.InetAddress;


/**
 * Message: answered to a file request
 * 
 * <p>
 * <ul>
 * <li>Project: 	ChatSystemG3</li>
 * </ul>
 * </p>
 * 
 * @author COMBES Nicolas - LECHANTRE Arnaud
 * @see ConversationObserverNotification
 * @see ObserverNotification
 */
public class FileAnswerObserverNotification extends ConversationObserverNotification {

	private String filename;				//Message to send to the remote user
	private File downloadDirectory;
	private boolean answer;

	/**
	 * Construct
	 * @param convId  : unique identifier of the conversation in which the message should be sent
	 * @param ipAddress	: ip address of the remote user 
	 * @param username	: name of the user that have sent the message
	 * @param message : message that has been sent
	 */
	public FileAnswerObserverNotification(int convId, InetAddress ipAddress, String username, String filename, boolean answer, File downloadDirectory) {
		super(convId, ipAddress, username);
		this.filename = filename;
		this.answer = answer;
		this.downloadDirectory=downloadDirectory;
	}
	

	public File getDownloadDirectory() {
		return this.downloadDirectory;
	}

	public void setDownloadDirectory(File downloadDirectory) {
		this.downloadDirectory = downloadDirectory;
	}

	public String getFileName() {
		return this.filename;
	}
	
	public boolean getAnswer (){
		return this.answer;
	}
	
	public void setAnswer (boolean answer){
		this.answer=answer;
	}

}
